package ArrayList;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author
 * @create 2018-09-27 21:58
 **/
public class HashMapTest {

    public static void main(String[] args) {
        HashMap<Person, String> map = new HashMap<Person, String>();
        Person person = new Person(1234, "乔峰");
        //put到hashmap中去
        map.put(person, "天龙八部");
        Person person1 = new Person(1234, "萧峰");
        //get取出，从逻辑上讲应该能输出“天龙八部”
        System.out.println("结果:" + map.get(new Person(1234, "萧峰")));
        System.out.printf("结果1：" + map.get(person));

        List list = new ArrayList();
        list.add(1);
        list.add(2);
        list.add(10);
        list.add(4);

        Collections.sort(list);
        Arrays.sort(new List[]{list});
        LinkedHashMap linkedHashMap = new LinkedHashMap();

        HashSet hashSet = new HashSet();
        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
    }

}
